package edu.hit.crawler.mapred;

import java.io.IOException;

import org.apache.hadoop.io.FloatWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

import edu.hit.crawler.io.CrawItem;

public class UpdateUnselected extends Mapper<FloatWritable, CrawItem, Text, CrawItem>{

	@Override
	public void map(FloatWritable key, CrawItem value, Context context) {
		try {
			context.write(new Text(value.getUrl()), value);
		} catch (IOException e) {
			e.printStackTrace();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
